import {useAppConfig} from "@/composables/useAppConfig";
import {useStorage} from "@vueuse/core";

export function useAppSettings() {
    const {sidebar: _sidebar} = useAppConfig()

    const sidebar = useStorage('app-settings', {
        default: () => ({
            collapsible: _sidebar.collapsible,
            side: _sidebar.side,
            variant: _sidebar.variant,
        })
    })

    return {
        sidebar
    }
}
